////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CODE
// AUTHOR           :   Saint Peng 
// DATE CREATE      :   2006/01/05
// DESCRIPTION      :   a VO file for the function, CODE
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/01/05   Saint Peng      1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.setup.codeSetup.vo;

import java.sql.Timestamp;

import com.erp.app.setup.codeSetup.pk.CodeHdrPk;
import com.erp.framework.model.pk.SimpleSearchMaintStylePk;
import com.erp.framework.model.vo.SimpleSearchMaintStyleVo;

/**
* <p>A <strong>VO</strong>(Value Object) is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this class is to store the data retrieved from the database,
* and the converted data from the web browsers.
*
* @author          Saint Peng 
* @version 1.0     2006/01/05
* @since           FrameWork 1.0
*
*/
public class CodeHdrVo extends SimpleSearchMaintStyleVo {

	//DB Table Name: T_CODE_HDR

	//PK Attributes
	private String companyCode;                      //DB Column Name: COMPANY_CODE
	private String refMasterCode;                    //DB Column Name: REF_MASTER_CODE

	//Other Attributes
	private String refDesc;                          //DB Column Name: REF_DESC
    private String ref1Desc;                         //DB Column Name: REF_1_DESC
    private String ref2Desc;                         //DB Column Name: REF_2_DESC
    private String ref3Desc;                         //DB Column Name: REF_3_DESC
	private String createUser;                       //DB Column Name: CREATE_USER
	private Timestamp createDate;                    //DB Column Name: CREATE_DATE
	private String updateUser;                       //DB Column Name: UPDATE_USER
	private Timestamp updateDate;                    //DB Column Name: UPDATE_DATE
	private String showDesc;                         //DB Column Name: SHOW_DESC

	/**
	* Stores the detail child names by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	protected  void setChildTypesName() {
		this.childTypesName=new String[1];
		this.childTypesName[0]="com.erp.app.setup.codeSetup.vo.CodeDtlVo";
	}

	/**
	* Stores the table schema name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	protected void setTableSchemaName() {
		this.tableSchemaName="com.erp.app.setup.codeSetup.schema.CodeHdrSchema";
	}

	/**
	* Stores the detail child table schema names by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	protected  void setChildTableSchemaNames() {
		this.childTableSchemaNames=new String[1];
		this.childTableSchemaNames[0]="com.erp.app.setup.codeSetup.schema.CodeDtlSchema";
	}

	/**
	* Stores the DAO name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	protected void setDaoName() {
		this.daoName="com.erp.app.setup.codeSetup.dao.CodeHdrDao";
	}

	/**
	* Stores the biz logic name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	protected void setBizLogicName() {
		this.bizLogicName = "com.erp.app.setup.codeSetup.bizLogic.CodeBizLogic";
	}

	/**
	* Returns the primary key for this class.
	* @return      primary key of this class
	*
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	public SimpleSearchMaintStylePk getSearchMaintStylePk() {
		return new CodeHdrPk(this.companyCode, this.refMasterCode);
	}

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Saint Peng 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, refMasterCode = " + this.refMasterCode + "}\n";

		String colStr = "COL: {refDesc = " + this.refDesc
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate
			+ "\n, showDesc = " + this.showDesc + "}\n";

		return "CodeHdrVo.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getRefMasterCode() {
		return this.refMasterCode;
	}

	public String getRefDesc() {
		return this.refDesc;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public Timestamp getUpdateDate() {
		return this.updateDate;
	}

	public String getShowDesc() {
		return this.showDesc;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public void setRefMasterCode(String refMasterCode) {
		this.refMasterCode = refMasterCode;
	}

	public void setRefDesc(String refDesc) {
		this.refDesc = refDesc;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public void setUpdateDate(Timestamp updateDate) {
		this.updateDate = updateDate;
	}

	public void setShowDesc(String showDesc) {
		this.showDesc = showDesc;
	}

    public String getRef1Desc() {
        return ref1Desc;
    }

    public void setRef1Desc(String ref1Desc) {
        this.ref1Desc = ref1Desc;
    }

    public String getRef2Desc() {
        return ref2Desc;
    }

    public void setRef2Desc(String ref2Desc) {
        this.ref2Desc = ref2Desc;
    }

    public String getRef3Desc() {
        return ref3Desc;
    }

    public void setRef3Desc(String ref3Desc) {
        this.ref3Desc = ref3Desc;
    }

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

}